$var1 = 1
$var2 = 2

if ($var1 -eq 1) {
    Write-Output "first level condition met"
    if ($var2 -eq 2) {
        Write-Output "second level condition met"
    }

}
pause